package com.finna.tenant.dto.TenantAccountJoinDTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 租户账号关联响应
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TenantAccountJoinResponse {
    
    private Long id;
    
    private Long tenantId;
    
    private String tenantName;
    
    private String tenantAvatar;
    
    private Boolean isPublic;
    
    private Long accountId;
    
    private String accountName;
    
    private String accountAvatar;
    
    private Long roleId;
    
    private String roleName;
    
    private String role;
    
    private String metaInfo;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedAt;
}

